package com.vehicle.domains.ctx;

import com.vehicle.domains.entity.CameraEntity;
import com.vehicle.domains.entity.CommonVehicleEntity;
import com.vehicle.domains.entity.TransportVehicleEntity;
import com.vehicle.domains.entity.VehicleCommonLedgerEntity;
import com.vehicle.domains.info.InternalCameraInfo;
import com.vehicle.domains.info.InternalVehicleInfo;
import lombok.Data;

@Data
public class PlateDetectContext {
    private String vehicleNumber;

    // 车辆信息
    private InternalVehicleInfo internalVehicleInfo;

    // 相机信息
    private InternalCameraInfo internalCameraInfo;

    private CameraEntity cameraEntity;

    private CommonVehicleEntity commonVehicleEntity;

    private TransportVehicleEntity transportVehicleEntity;

    private String inOutType;

    private String vehicleType;

    private VehicleCommonLedgerEntity vehicleCommonLedgerEntity;


    public void setCameraEntity(CameraEntity cameraEntity) {
        this.cameraEntity = cameraEntity;
        this.setInOutType(cameraEntity.getInOutType());
    }

    public void setCommonVehicleEntity(CommonVehicleEntity commonVehicleEntity) {
        this.commonVehicleEntity = commonVehicleEntity;
        this.vehicleType = commonVehicleEntity.getVehicleType();
    }
}
